package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CheckItemMapper extends BaseMapper<CheckItem> {

    @Select("select i.* from check_group_item_t r\n" +
            "left join check_item_t i on r.item_id = i.id\n" +
            "where group_id = #{groupId}")
    public List<CheckItem> selectByGroupId(@Param("groupId") Long groupId);

}
